KY111
#include <iostream>
using namespace std;
void Swap(int&a,int &b)
{   
    int temp=a;
    a=b;
    b=temp;
}

int main() {
    int year1, month1,day1,year2,month2,day2;
    int monthday[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};
    int  s1,s2;
    while(cin >>s1>>s2)
    {
        if(s1<s2)
    Swap(s1,s2);
    year1=s1/10000,month1=s1%10000/100,day1=s1%100;
    year2=s2/10000,month2=s2%10000/100,day2=s2%100;
  // 注意 while 处理多个 case    
        int count=1;
        while(!(year1==year2&&month1==month2))
        {
             month1--;
             if(month1==0)
             {
                month1=12;
                year1--;
             }
             count+=monthday[month1];
             if(year1%4==0&&year1%100!=0||year1%400==0)
             count++;
        }
        count=day1-day2+count;
        cout << count<< endl;
    }
    return 0;
}
// 64 位输出请用 printf("%lld")
